Answers for "define a tag"

0

define a tag

private GameObject     m_spawnedBuilding     = null;
     private GameObject  m_buildingSelected  = null;
     
     private SpawnController    m_spawnController    = null;
 
     private LayerMask     m_maskPlaceBuilding;
     private  float       m_buildingGroundPos = 1.0f;
     private  Camera        m_camera        =    null;
     private     LayerMask     m_maskSelectBuilding;
 
     // Use this for initialization
     void Awake()
     {
         m_spawnController = GameObject.FindWithTag("SpawnController").GetComponent<SpawnController>();
         
         m_maskPlaceBuilding = GameObject.FindWithTag("PlayerControls").GetComponent<PlayerControls>().m_maskPlaceBuilding;
         m_buildingGroundPos = GameObject.FindWithTag("PlayerControls").GetComponent<PlayerControls>().m_buildingGroundPos;
         m_camera = GameObject.FindWithTag("PlayerControls").GetComponent<PlayerControls>().m_camera;
         m_maskSelectBuilding = GameObject.FindWithTag("PlayerControls").GetComponent<PlayerControls>().m_maskSelectBuilding;
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language