20 lines
550 B
C#
20 lines
550 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public partial class PlayerMain
|
|
{
|
|
private void Input_OnRegularAttackTrigger(object sender, EventArgs e)
|
|
{
|
|
|
|
|
|
RegularProjectile projectile = Instantiate(_characterSO.GetRegularProjectile(),
|
|
character.GetHorizontalShootingPoint().position,
|
|
Quaternion.identity);
|
|
|
|
projectile.transform.right = _facingDir > 0 ? transform.right : -transform.right;
|
|
|
|
projectile.SetSpeed(15f);
|
|
}
|
|
} |