Beispiel #1
0
 protected virtual void Awake()
 {
     toolbox            = FindObjectOfType <Core_Toolbox>();
     em                 = toolbox.GetComponent <Core_EventManager>();
     lib                = toolbox.GetComponentInChildren <Core_GlobalVariableLibrary>();
     rb                 = GetComponent <Rigidbody>();
     shipColorableParts = GetComponentsInChildren <Core_ShipColorablePartTag>();
     shipHull           = GetComponentInChildren <Core_ShipHullTag>().transform;
     shipTurret         = GetComponentInChildren <Core_ShipTurretTag>().transform;
     turretOutputMarker = GetComponentInChildren <Core_TurretOutputMarkerTag>().
                          transform;
     healthBar = GetComponentInChildren <Core_ShipHealthBarTag>().gameObject;
 }
Beispiel #2
0
    //float lerpTime = 1;
    //float timeStartedLerping;

    void Awake()
    {
        toolbox = FindObjectOfType <Core_Toolbox>();
        em      = toolbox.GetComponentInChildren <Core_EventManager>();
    }