Пример #1
0
        public BrainerLogics(iBrainCandidate owner)
        {
            this.owner = owner;

            mono = owner as MonoBehaviour;
            Debug.Assert(mono != null, "nop");

            tr = mono.transform;
        }
Пример #2
0
        private void Awake()
        {
            owner = GetComponentInParent <iBrainCandidate>();
            Debug.Assert(owner != null);

            brain = owner.getBrain();
            Debug.Assert(brain != null);

            buildCapacity();
        }