Beispiel #1
0
    void OnTriggerEnter(Collider other)
    {
        BlockManAiScriptlv2 blockAI = other.GetComponentInParent <BlockManAiScriptlv2>();

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