private void Start() { JCS_PlayerManager pm = JCS_PlayerManager.instance; JCS_2DGameManager gm2d = JCS_2DGameManager.instance; if (pm != null) { pm.IgnorePhysicsToAllPlayer(mBoxCollider); } if (gm2d != null) { gm2d.IgnoreAllPlatformTrigger(mBoxCollider); } }
//======================================== // Unity's function //------------------------------ private void Awake() { instance = this; mPlayers = new List <JCS_Player>(); }