Example #1
0
    void CreateTank(Vector3 transform)
    {
        TankModel tankModel = new TankModel(10, 100f);

        tankView.GetComponent <Transform>().position = transform;
        TankController tank = new TankController(tankModel, tankView);
    }
 private void GetPLayerAudioSource()
 {
     player = TankService.Instance.GetCurrentPlayer();
     if (player != null)
     {
         playerSource = player.GetComponent <AudioSource>();
     }
     else
     {
         Debug.Log("player is null");
     }
 }