Beispiel #1
0
 void damage()
 {
     group = GameObject.Find("God").GetComponent<NamesGroup>();
     enemyAnimator = group.enemy.GetComponent<Animator> ();
     enemyAnimator.SetTrigger ("damaged");
     UnityEngine.Debug.Log ("damage");
 }
Beispiel #2
0
        public NamesGroup GetNames()
        {
            using (SqlConnection connection = new SqlConnection(_connectionString))
            {
                var gameQueryString = @"Select Name, Id
                                        From Game";
                var gameNames       = connection.Query <SearchItem>(gameQueryString);

                var achievementQueryString = @"Select Name, Id
                                               From Achievement
                                               Where IsApproved = 1";
                var achievementNames       = connection.Query <SearchItem>(achievementQueryString);

                var userQueryString = @"Select Username as Name, Id
                                        From [User]";
                var usernames       = connection.Query <SearchItem>(userQueryString);

                var names = new NamesGroup()
                {
                    GameNames = gameNames, Usernames = usernames, AchievementNames = achievementNames
                };
                return(names);
            }
            throw new Exception("Could not get names");
        }
Beispiel #3
0
 void Start()
 {
     UnityEngine.Debug.Log ("start");
     buttleManager = GameObject.Find("ButtleManager").GetComponent<ButtleManager>();
     group = GameObject.Find("God").GetComponent<NamesGroup>();
     //shujinkoAnimator = group.shujinko.GetComponent<Animator> ();
     attackAnimeId = Animator.StringToHash("attackAnime");
 }