示例#1
0
        // public void StopEnnemyTime()
        // {
        //  float factor = TimeManager.StopTime();
        //  anim.speed = 1f/factor;
        // }

        // public void ResetTime()
        // {
        //  anim.speed = 1f;
        //  TimeManager.ResetTime();
        // }

        // public void ChangeState()
        // {
        //  Camera.main.GetComponent<NierCam>().SetNewTarget(Target);
        //  Camera.main.GetComponent<NierCam>().ChangeState();
        // }

        // public void ChangeTarget(float x)
        // {
        //  if(Mathf.Abs(x) > 0.5f && changing_cooldown <= 0f)
        //  {

        //      Targets = Globals.CleanArray(Targets);
        //      if(Targets.Length > 0)
        //      {

        //          CurrentTargetIndex += (int)(Mathf.Sign(x));
        //          CurrentTargetIndex = CurrentTargetIndex < 0 ? Targets.Length - 1 : CurrentTargetIndex%Targets.Length;

        //          Target = Targets[CurrentTargetIndex];

        //          camera_control.SetNewTarget(Target);

        //      }

        //      changing_cooldown = ChangingCooldown;
        //  }
        // }

        void Initialization()
        {
            anim       = GetComponent <Animator>();
            rb         = GetComponent <Rigidbody>();
            mothership = GetComponent <Modular>();

            // Target = Targets[0];
            GlobalUtils.FillAllBoxes(Hitboxes, out hitboxes, out hurtboxes);
            // hitboxes = Globals.FillHitboxes(Hitboxes);
        }
示例#2
0
        void Initialization()
        {
            anim       = GetComponent <Animator>();
            rb         = GetComponent <Rigidbody>();
            mothership = GetComponent <Modular>();
            // fight = GetComponent<NierFight>() ;

            TargetRotation = transform.rotation;

            JumpInitialization();
        }