Ejemplo n.º 1
0
        protected virtual void Awake()
        {
            CharacterActor = this.GetComponentInBranch <CharacterActor>();

            if (CharacterActor != null)
            {
                RootController = CharacterActor.GetComponentInChildren <CharacterGraphicsRootController>();
            }
        }
Ejemplo n.º 2
0
        protected virtual void OnValidate()
        {
            CharacterActor = this.GetComponentInBranch <CharacterActor>();

            if (CharacterActor == null)
            {
                Debug.Log("Warning: No CharacterActor component detected in this hierarchy.");
            }
            else
            {
                RootController = CharacterActor.GetComponentInChildren <CharacterGraphicsRootController>();
            }
        }