예제 #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;
        }
예제 #2
0
 public void Init(StateManager st)
 {
     animationlimit = 1;
     state          = st;
     anim           = st.anim;
     aam            = GetComponent <AttackActionManager>();
     weapon         = GetComponentInChildren <Player_WeaponHook>();
     parry          = GetComponentInChildren <ParryHook>();
 }