Esempio n. 1
0
        protected override void Start()
        {
            base.Start();

            var characterType = GameInfoManager.EnemySelectCharacterType;

            SetCharacterParameter(characterType);

            {
                gameObject.DescendantsAndSelf().OfComponent <SpriteRenderer>().FirstOrDefault().flipX = true;
                transform.localScale = new Vector3(1, 1, 1);
                transform.position   = new Vector3(transform.position.x, 0, transform.position.z);
            }

            // Set Animation Controller
            {
                var filePath            = GameInfoManager.CalcCharacterAnimationControllerFilePath(characterType);
                var animationController = ResourceManager.LoadRuntimeAnimatorController(filePath);
                SetAnimationController(animationController);
            }

            // ダメージTag
            {
                DamageTagList.Add("PlayerAttack");
            }
        }
Esempio n. 2
0
        protected override void Start()
        {
            base.Start();

            var characterType = GameInfoManager.PlayerSelectCharacterType;

            SetCharacterParameter(characterType);

            // Set Animation Controller
            {
                var filePath            = GameInfoManager.CalcCharacterAnimationControllerFilePath(characterType);
                var animationController = ResourceManager.LoadRuntimeAnimatorController(filePath);
                SetAnimationController(animationController);
            }

            // ダメージTag
            {
                DamageTagList.Add("EnemyAttack");
            }
        }