//ToDo: If soldier is standing on platform and flag is returned, point is not scored //until onTriggerEnter event happens between ally flag and ally platform. public override void trigger(Collider other) { FlagActions flag; //an un-allied flag collided with this platform if (flagIsHome && (flag = other.gameObject.GetComponent <FlagActions> ()) != null && flag.getNetID() != netID) { //score a point StateManager.state.ScorePoint(netID); //return the opponent's flag flag.returnFlag(); //set lockout window } }