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); } }
//---------------------- // Protected Variables //======================================== // setter / getter //------------------------------ //======================================== // Unity's function //------------------------------ private void Awake() { instance = this; mPlatformList = new List <JCS_2DPositionPlatform>(); }