// Start is called before the first frame update
    void Start()
    {
        fss = GameObject.Find("FriendlyShipGenerator").GetComponent <FriendlyShipScript>();

        maximumHP = 100;
        currentHP = 100;
    }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        ess               = GameObject.Find("EnemyShipGenerator").GetComponent <EnemyShipScript>();
        fss               = GameObject.Find("FriendlyShipGenerator").GetComponent <FriendlyShipScript>();
        lighthouse        = GameObject.Find("Headless_light_house");
        friendlyGenerator = GameObject.Find("FriendlyShipGenerator");

        offset = new Vector3(2, 0, 2);

        //cannonball = GameObject.FindGameObjectWithTag("CannonballAttack");
        //cannonballTransform = cannonball.transform;

        originalRotation = transform.rotation;
    }