예제 #1
0
 // Use this for initialization
 void Start()
 {
     //audio = GetComponent<AudioSource>();
     SLC = GameObject.Find("Main Camera").GetComponent<StoryLineComponents>();
 }
예제 #2
0
 // public GameObject projectile;
 // Use this for initialization
 void Start()
 {
     anim = GetComponent<Animator> ();
     flamethrower = gameObject.GetComponentInChildren<ParticleSystem>();
     flameEmmision = flamethrower.gameObject;
     startPosition = new Vector3(-120, 0, -1);
     playerStat = gameObject.GetComponent<StatCollectionClass>();
     playerStat.health = 100;
     playerStat.mana = 100;
     playerStat.intellect = 1;
     playerStat.playerDirection = 2;
     attackSound = GetComponent<AudioSource>();
     SLC = GameObject.Find("Main Camera").GetComponent<StoryLineComponents>();
     lavaGenerator = GameObject.Find("Main Camera").GetComponent<Lava2Generate>();
     D = GetComponent<Dialogue>();
     townPosition = new Vector3 (137f, -46f, -1f);
 }