Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- using System;
- using UnityEngine;
-
- public class DisableOnPlatform : PlatformActive
- {
- public void Awake()
- {
- if (this.DisableOn == base.CurrentPlatform)
- {
- if (this._destroy)
- {
- UnityEngine.Object.Destroy(base.gameObject);
- }
- else
- {
- base.gameObject.SetActive(false);
- }
- }
- }
-
- [SerializeField]
- private PlatformActive.Platform DisableOn;
-
- [SerializeField]
- private bool _destroy;
- }
|