Ejemplo n.º 1
0
    /* Methods */

    // Use this for initialization
    void Start()
    {
        //Find and assign associated behaviours
        bank   = gameObject.GetComponentInChildren <ShipBank>();
        roll   = gameObject.GetComponentInChildren <ShipRoll>();
        wings  = gameObject.GetComponentsInChildren <ShipWing>();
        boost  = gameObject.GetComponent <ShipBoost>();
        rotate = gameObject.GetComponent <ShipRotate>();
        move   = gameObject.GetComponent <ShipMove>();


        //
        //
        //Set camera's boundaries based on player's boundaries
        cameraPan.SetPanMaxDistance(5.0f, 5.0f);
        //
        //

        //Assign associated values to ensure animations sync up properly
        wings[0].wingDestroyed = false;
        wings[1].wingDestroyed = false;
    }
Ejemplo n.º 2
0
 public void OnEnable()
 {
     shipBoost = (ShipBoost)target;
 }