Question by 
               ArmyAntsStudios · Oct 13, 2018 at 04:15 AM · 
                error message  
              
 
              help getting errors when i try to add object to array
here's the code:
if (Input.GetMouseButtonDown(0)) {
                     if (currentBlueprint.tag == "Tower")
                     {
                         number++;
                         GameObject newTower = Instantiate(currentObject, currentBlueprint.transform.position, currentBlueprint.transform.rotation);
                         newTower.transform.name = "Tower" + number;
                         Array.Resize(ref Towers, number);
                         newTower = Towers[number - 1].gameobject;
                     }
                 }
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
(android build) Unable to initialize unity engine 2 Answers
Animator not initialized "cautions" 0 Answers
Hello, I have problem with building a project on Android with Vuforia 0 Answers
Unity package manage error 0 Answers
InvalidCastException: Cannot cast from source type to destination type 0 Answers