protected override void Awake () { base.Awake (); triggerTransform = cachedTransform.Find("FreezeTrigger"); freezeTrigger = triggerTransform.collider as BoxCollider; triggerListener = triggerTransform.GetComponent<TilesTriggerListener>(); }
protected override void Awake() { base.Awake(); triggerTransform = cachedTransform.Find("FreezeTrigger"); freezeTrigger = triggerTransform.collider as BoxCollider; triggerListener = triggerTransform.GetComponent <TilesTriggerListener>(); }
public void InitBombDestroyEffect(Match3Tile owner, Vector3 destroyTriggerPos) { effectOwner = owner; // Setup destroy trigger destroyTrigger.position = destroyTriggerPos; triggerListener = destroyTrigger.gameObject.GetComponent<TilesTriggerListener>(); StartCoroutine(StartTriggerScale(explosionSpreadTime)); }
public void InitBombDestroyEffect(Match3Tile owner, Vector3 destroyTriggerPos) { effectOwner = owner; // Setup destroy trigger destroyTrigger.position = destroyTriggerPos; triggerListener = destroyTrigger.gameObject.GetComponent <TilesTriggerListener>(); StartCoroutine(StartTriggerScale(explosionSpreadTime)); }