コード例 #1
0
    private void OnTriggerEnter(Collider other)
    {
        isActive = true;

        StartCoroutine(DeactivateAfter(deactivateTime, renderers));
        if (ActivatorsHandler.IsAllActive(ActivatorName))
        {
            DoAction();
        }
    }
コード例 #2
0
 private void Start()
 {
     ActivatorsHandler = FindObjectOfType <ActivatorsHandler>();
     ActivatorsHandler.AddToActivators(this);
 }