Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        controller = new Controller();
        controller.Enable();
        maeve = GetComponent <JUB_Maeve>();

        controller.MainController.Flash.performed += ctx => Flash();
    }
Example #2
0
    // Start is called before the first frame update
    void Start()
    {
        player            = GameObject.FindGameObjectWithTag("Player").GetComponent <JUB_Maeve>();
        SMBanimator       = GetComponent <Animator>();
        pathfinder        = GetComponent <AIPath>();
        destinationSetter = GetComponent <AIDestinationSetter>();
        flashManager      = GetComponentInChildren <JUB_FlashManager>();

        SMBanimator.GetBehaviour <VampireSMB_Idle>().vampire   = this;
        SMBanimator.GetBehaviour <VampireSMB_Attack>().vampire = this;
        SMBanimator.GetBehaviour <VampireSMB_Escape>().vampire = this;
        SMBanimator.GetBehaviour <VampireSMB_Stun>().vampire   = this;
        SMBanimator.GetBehaviour <VampireSMB_Pause>().vampire  = this;
        SMBanimator.GetBehaviour <VampireSMB_Pursue>().vampire = this;
    }
    // Start is called before the first frame update
    void Start()
    {
        instantiationTime = (sprintDistance / sprintSpeed) / 7;

        player            = GameObject.FindGameObjectWithTag("Player").GetComponent <JUB_Maeve>();
        flashManager      = GetComponentInChildren <JUB_FlashManager>();
        SMBanimator       = GetComponent <Animator>();
        pathfinder        = GetComponent <AIPath>();
        destinationSetter = GetComponent <AIDestinationSetter>();

        SMBanimator.GetBehaviour <ImpSMB_Idle>().imp   = this;
        SMBanimator.GetBehaviour <ImpSMB_Pursue>().imp = this;
        SMBanimator.GetBehaviour <ImpSMB_Sprint>().imp = this;
        SMBanimator.GetBehaviour <ImpSMB_Pause>().imp  = this;

        SMBanimator.GetBehaviour <ImpSMB_Stun>().imp = this;
    }
Example #4
0
    // Start is called before the first frame update
    void Start()
    {
        player            = GameObject.FindGameObjectWithTag("Player").GetComponent <JUB_Maeve>();
        ennemyDamage      = GetComponent <JUB_EnnemyDamage>();
        SMBanimator       = GetComponent <Animator>();
        pathfinder        = GetComponent <AIPath>();
        destinationSetter = GetComponent <AIDestinationSetter>();

        SMBanimator.GetBehaviour <SkeletonSMB_Iddle>().skeleton              = this;
        SMBanimator.GetBehaviour <SkeletonSMB_Pursue>().skeleton             = this;
        SMBanimator.GetBehaviour <SkeletonSMB_Pause>().skeleton              = this;
        SMBanimator.GetBehaviour <SkeletonSMB_Attack>().skeleton             = this;
        SMBanimator.GetBehaviour <SkeletonSMB_Escape>().skeleton             = this;
        SMBanimator.GetBehaviour <SkeletonSMB_ReconstructionBody>().skeleton = this;
        SMBanimator.GetBehaviour <SkeletonSMB_DestructionBody>().skeleton    = this;

        thresholdLife = ennemyDamage.maxHealth - bodyHealth;
    }
 void Start()
 {
     player      = GameObject.FindGameObjectWithTag("Player");
     maeveScript = player.GetComponent <JUB_Maeve>();
 }