void OnTriggerEnter(Collider other) { BlockManAiScriptlv2 blockAI = other.GetComponentInParent <BlockManAiScriptlv2>(); if (blockAI != null) { Debug.Log("slow"); blockAI.moveSpeed = 3; } }
void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Body") { bmscript = other.gameObject.GetComponentInParent <BlockManAiScriptlv2> (); if (bmscript != null && !currentlyInside) { deathTimer = setDeathTimer; } } }
void Start() { blockAi = GetComponentInParent <BlockManAiScriptlv2>(); anim = GetComponentInParent <Animator>(); }