示例#1
0
    // Use this for initialization
    void Start()
    {
        rigidbody2D       = GetComponent <Rigidbody2D>();
        builderScript     = GetComponent <PlayerBuilder>();
        buildingPlacement = builderScript.GetBuildingPlacement();
        var gameStatusCanvas = transform.Find("GameStatusText");

        gameStatusText = gameStatusCanvas.Find("Text").gameObject.GetComponent <Text>();
        EnablePlayer();
        GameBoard.Playerlist.Add(gameObject);
        playerBuilder = GetComponent <playerBuilder>();
    }