void OnEnable() { _target = this.target as JPhysicsSetting; _gravity = serializedObject.FindProperty("_gravity"); this.InitCollisionLayerMasks(); }
private void Awake() { this.setting = Instantiate(Resources.Load <JPhysicsSetting>("JPhysics Settings")); this.StartCoroutine(UpdateCollisions()); }