Exemple #1
0
        // Use this for initialization
        public void Init()
        {
            attacknum = 0;
            canMove   = true;
            SetupAnimator();
            rigid             = GetComponent <Rigidbody>();
            rigid.angularDrag = 999;
            rigid.drag        = 4;
            rigid.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationZ;
            parry             = GetComponentInChildren <ParryHook>();
            parry.CloseParryCollider();
            WeaPonManager = GetComponent <WeaPonManager>();
            target        = GameObject.Find("Axesdragon").transform;


            //Ainfo = GetComponent<PlayerAttackInfoManager>();
            //Ainfo.Init(this);

            //attackactionManager = GetComponent<AttackActionManager>();
            //attackactionManager.Init(this);


            AM = player.AddComponent <Animationmanager>();
            AM.Init(this);

            anim_test = GetComponent <anim_test>();

            gameObject.layer = 8;
        }
 public void CloseParryCollider()
 {
     if (state == null)
     {
         return;
     }
     parry.CloseParryCollider();
     //state.Ainfo.CloseParryCollider();
 }