예제 #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
        void Start()
        {
            state = GetComponent <StateManager>();

            state.Init();
            WeaPonManager  = GetComponent <WeaPonManager>();
            cameracontroll = New_CameraControll.singleton;
            cameracontroll.Init(this.transform);
        }