Пример #1
0
        /// <summary>
        /// The Start methods initializes the component and prepares its basic properties.
        /// </summary>
        protected override void Start()
        {
            proxChecker = GetComponent <NetworkProximityChecker>();

            movementComponent = gameObject.GetComponent <EntityMovementComponent>();

            base.Start();
        }
 //LOAD COMPONENTS
 void LoadComponents()
 {
     if (!proxChecker)
     {
         proxChecker = GetComponent <NetworkProximityChecker>();
     }
     if (!movementComponent)
     {
         movementComponent = GetComponent <EntityMovementComponent>();
     }
 }