Exemplo n.º 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;
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 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);
            }
        }