Esempio n. 1
0
    private void Awake()
    {
        m_InGameCamera = Camera.main.GetComponentOrFail <InGameCamera>();

        m_Rigidbody2D = this.GetComponentOrFail <Rigidbody2D>();
        m_Collider2D  = this.GetComponentOrFail <BoxCollider2D>();
        m_FlagBearer  = this.GetComponentOrFail <FlagBearer>();
    }
Esempio n. 2
0
    private void GiveFlagToRunner(int index)
    {
        FlagBearer flagBearer = m_Runners[index].GetComponentOrFail <FlagBearer>();

        flagBearer.BearFlag(m_FlagTr);
    }