Example #1
0
    protected override void ShootEnd()
    {
        base.ShootEnd();
//        Debug.Log("ShootEnds");

        if (rotateContainer != null)
        {
            TryAttack(rotateContainer.trg);
            rotateContainer = null;
        }
    }
Example #2
0
 private void subTR(Vector3 target,Vector3 dir)
 {
     if (isPlayAttack)
     {
         rotateContainer = new RotateContainer(target);
     }
     else
     {
         heorControl.SetLookDir(dir);
         shootContainer = new ShootContainer(dir);
     }
 }
Example #3
0
File: Hero.cs Project: Kinderril/p3
    private void subTR(Vector3 target,Vector3 dir,float additionalPower)
    {
        if (isPlayAttack)
        {
            rotateContainer = new RotateContainer(target);
        }
        else
        {
#if UNITY_EDITOR
            Debug.DrawRay(transform.position, dir * 5, Color.green, 2);
#endif
            heorControl.SetLookDir(dir);
            shootContainer = new ShootContainer(dir, additionalPower);
        }
    }