예제 #1
0
 private void Start()
 {
     m_moveButton.gameObject.SetActive(false);
     m_cancelButton.gameObject.SetActive(false);
     m_inputController = m_inputControllerObj.GetComponent <InputController>();
     m_inputController.AddClickListener(this);
 }
예제 #2
0
    private void Start()
    {
        m_createButton.gameObject.SetActive(false);
        m_cancelButton.gameObject.SetActive(false);
        m_inputController = m_inputControllerObj.GetComponent <InputController>();
        m_inputController.AddClickListener(this);

        m_spawnPosition = GameObject.FindGameObjectWithTag("PlayerBarrack").transform.position;
        m_spawnPosition = new Vector3(m_spawnPosition.x - 5, m_spawnPosition.y, m_spawnPosition.z);
    }
예제 #3
0
    void Start()
    {
        m_healthBar = Instantiate(m_healthBarPrefab);
        m_healthBar.GetComponent <HealthBar>().SetParent(this);

        m_actionsController = m_actionsControllerObj.GetComponent <ActionsController>();

        m_inputController = m_inputControllerObj.GetComponent <InputController>();
        m_inputController.AddClickListener(this);

        m_currentCooldown = 0;

        m_agent = GetComponent <NavMeshAgent>();
        m_agent.updateRotation = false;

        SetHealthBarActive(false);
    }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     m_actionsBarrackController = m_actionsControllerObj.GetComponent <ActionsBarrackController>();
     m_inputController          = m_inputControllerObj.GetComponent <InputController>();
     m_inputController.AddClickListener(this);
 }