示例#1
0
    private void StartGame()
    {
        Player.StartGame();
        GameStarted = true;

        GridPlayground.ShowCells();
    }
示例#2
0
    private void Start()
    {
        _tailParent = new GameObject("Tail Parent").GetComponent <Transform>();

        _beatSource     = GetComponent <AudioSource>();
        _gridPlayground = FindObjectOfType <GridPlayground>();

        Instantiate(SegmentPrefab, transform);

        _lastDirection = Vector3.right;
    }
示例#3
0
 private void Awake()
 {
     Instance = this;
 }