Inheritance: MonoBehaviour
 // Use this for initialization
 void Start()
 {
     stunTimer    = 0;
     stunDuration = 1.5f;
     speed        = 5f;
     jump         = 4000;
     grounded     = true;
     stunned      = false;
     playing      = true;
     //player = PLAYER.BLUE;
     anim          = transform.GetComponent <AnimationCharacter> ();
     loadingScreen = GameObject.FindGameObjectWithTag("LoadingScreen").
                     GetComponent <LoadingScreen>();
     destroyer = GameObject.FindGameObjectWithTag("Destroyer").
                 GetComponent <DestroyPlayer>();
     camer = GameObject.FindGameObjectWithTag("MainCamera").
             GetComponent <CameraMove>();
     winner = GameObject.FindGameObjectWithTag("Title").
              GetComponent <TextMesh>();
     dataLogic = GameObject.FindGameObjectWithTag("DataLogic").
                 GetComponent <DataLogic>();
 }
Beispiel #2
0
    // Start is called before the first frame update

    void Start()
    {
        player      = GameObject.FindGameObjectWithTag("Player");
        d           = GameObject.Find("Scripts").GetComponent <DestroyPlayer>();
        rollManager = GameObject.Find("HealthSlider").GetComponent <RollManager>();
    }
Beispiel #3
0
 private void Start()
 {
     Instance = this;
 }
Beispiel #4
0
 private void Start()
 {
     d = GameObject.Find("Scripts").GetComponent <DestroyPlayer>();
     warriorAnimator = GetComponent <Animator>();
 }
Beispiel #5
0
 public void Start()
 {
     instance = this;
 }