示例#1
0
    void Start()
    {
        kills = 0;

        chatMessages = new Chat ();
        chatMessages.setMessageHistorySize (5);
        chatMessages.setMessageLifeSpan (10000);

        if (isLocalPlayer) {
            ShipCamera sc = gameObject.AddComponent<ShipCamera>();
            sc.setHeight(10);

            assignShip();
            setCameraToFollow();

            thisPlayer = this;
        }
        deadTimer = spawnDelay;
        mouseControl = gameObject.AddComponent<MouseControl> ();
        pointersActive = false;
    }