Ejemplo n.º 1
0
 void Start()
 {
     doubleJumpParticle  = gameObject.transform.GetChild(6).GetChild(0).GetComponent <ParticleSystem>();
     tripleJumpParticle  = gameObject.transform.GetChild(7).GetChild(0).GetComponent <ParticleSystem>();
     paintingSoundSource = gameObject.transform.GetChild(8).GetComponent <AudioSource>();
     jumpSoundSource     = gameObject.transform.GetChild(9).GetComponent <AudioSource>();
     pullPush            = GetComponent <PullPush>();
     controller          = GetComponent <Controller2D>();
     abilities           = GetComponent <Abilities>();
     animator            = GetComponent <Animator>();        //ANIMATION
     createSplat         = GetComponent <CreateSplat>();
 }
Ejemplo n.º 2
0
 public override void Start()
 {
     base.Start();
     collisions.faceDir = 1;                                         //Face direction set to 1
     levelmanager       = FindObjectOfType <LevelManager>();
     checkpoint         = FindObjectOfType <Checkpoint>();
     pullPush           = GetComponent <PullPush>();
     createSplat        = GetComponent <CreateSplat>();
     //dashParticle = transform.GetChild(3).gameObject;
     paintParticleGO   = transform.GetChild(5).gameObject;
     paintParticles    = paintParticleGO.transform.GetChild(0).GetComponent <ParticleSystem>();
     graphicsTransform = gameObject.transform.FindChild("Graphics").transform;
 }
Ejemplo n.º 3
0
 void Start()
 {
     brushHead   = transform.GetChild(0).gameObject;
     createSplat = transform.GetComponentInChildren <CreateSplat>();
 }
Ejemplo n.º 4
0
    //************
    //
    // Private Unity Methods
    //
    //************

    private void Awake()
    {
        createSplat = GetComponent <CreateSplat>();
    }