private void Awake() { m_InGameCamera = Camera.main.GetComponentOrFail <InGameCamera>(); m_Rigidbody2D = this.GetComponentOrFail <Rigidbody2D>(); m_Collider2D = this.GetComponentOrFail <BoxCollider2D>(); m_FlagBearer = this.GetComponentOrFail <FlagBearer>(); }
private void GiveFlagToRunner(int index) { FlagBearer flagBearer = m_Runners[index].GetComponentOrFail <FlagBearer>(); flagBearer.BearFlag(m_FlagTr); }