コード例 #1
0
    public JUB_FlashManager flashManager; //flash manager à mettre en enfant et sur layer flashable

    void Start()
    {
        sprite         = this.GetComponent <SpriteRenderer>();
        sprite.enabled = false;

        flashManager = GetComponentInChildren <JUB_FlashManager>();
    }
コード例 #2
0
 void Start()
 {
     buttonsManager        = GetComponentInParent <RPP_ButtonsPuzzleManager>();
     spriteRenderer        = GetComponent <SpriteRenderer>();
     flashManager          = GetComponentInChildren <JUB_FlashManager>();
     spriteRenderer.sprite = boutonDésactivé;
 }
コード例 #3
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;
    }
コード例 #4
0
    private void Start()
    {
        torchesManager = GetComponentInParent <RPP_ButtonsPuzzleManager>();
        spriteRenderer = GetComponent <SpriteRenderer>();
        flashManager   = GetComponent <JUB_FlashManager>();
        //wasUnlit.AddListener(UnlightEverything);

        if (!isLit)
        {
            spriteRenderer.sprite = unlitTorch;
        }
        else
        {
            spriteRenderer.sprite = litTorch;
        }
    }
コード例 #5
0
    // 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;
    }