예제 #1
0
        protected override void Awake()
        {
            base.Awake();

            materialController = this.GetComponentInBranch <CharacterActor, MaterialController>();
            if (materialController == null)
            {
                Debug.Log("Missing MaterialController component");
                this.enabled = false;
                return;
            }
        }
예제 #2
0
        protected override void Awake()
        {
            base.Awake();

            notGroundedJumpsLeft = verticalMovementParameters.availableNotGroundedJumps;

            materialController = this.GetComponentInBranch <CharacterActor, MaterialController>();
            if (materialController == null)
            {
                Debug.Log("Missing MaterialController component");
                this.enabled = false;
                return;
            }
        }
예제 #3
0
        void Awake()
        {
            CharacterActor = this.GetComponentInBranch <CharacterActor>();


            materialController = this.GetComponentInBranch <CharacterActor, MaterialController>();

            if (materialController == null)
            {
                Debug.Log("CharacterMaterial component missing");
                this.enabled = false;
            }



            if (groundParticlesPrefab != null)
            {
                particlesPooler = new ParticleSystemPooler(groundParticlesPrefab, CharacterActor.transform.position, CharacterActor.transform.rotation, 10);
            }
        }