Exemplo n.º 1
0
        private void Awake()
        {
            _playerId = transform.parent.tag;

            _transform = transform;
            _modelTransform = _transform.FindChild("Plane Model").transform;

            _collisionController = GetComponent<Collisions>();
        }
Exemplo n.º 2
0
        private void Awake()
        {
            Transform planeTransform = transform.FindChild("Plane");

            _modelTransform = planeTransform.FindChild("Plane Model");
            _modelObject = _modelTransform.gameObject;

            _motionController = planeTransform.GetComponent<Motion>();
            _collisionController = planeTransform.GetComponent<Collisions>();
            _chaseCameraController = transform.FindChild("Camera").GetComponent<ChaseCamera>();

            _statusManager = transform.FindChild("Status Manager").GetComponent<StatusDisplayManager>();
        }