Beispiel #1
0
        private static void entryMarker(Transform parent, TrickData td, Dictionary <string, GameObject> dic, GameObject baseObj)
        {
            if (!td.IsVisualized())
            {
                return;
            }
            GameObject gameObject1 = baseObj;
            string     markerName  = td.mTrickParam.MarkerName;

            if (!string.IsNullOrEmpty(markerName) && dic.ContainsKey(markerName))
            {
                gameObject1 = dic[markerName];
            }
            if (!UnityEngine.Object.op_Implicit((UnityEngine.Object)gameObject1))
            {
                return;
            }
            Vector3 vector3;

            // ISSUE: explicit reference operation
            ((Vector3)@vector3).\u002Ector((float)(int)td.mGridX + 0.5f, GameUtility.CalcHeight((float)(int)td.mGridX + 0.5f, (float)(int)td.mGridY + 0.5f), (float)(int)td.mGridY + 0.5f);
            GameObject gameObject2 = UnityEngine.Object.Instantiate((UnityEngine.Object)gameObject1, vector3, Quaternion.get_identity()) as GameObject;

            if (!UnityEngine.Object.op_Implicit((UnityEngine.Object)gameObject2))
            {
                return;
            }
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object)parent, (UnityEngine.Object)null))
            {
                gameObject2.get_transform().SetParent(parent, false);
            }
            TrickData.mTrickMarkerLists.Add(td, gameObject2);
        }
Beispiel #2
0
        private static void entryMarker(SceneBattle sb, TrickData td)
        {
            if (!UnityEngine.Object.op_Implicit((UnityEngine.Object)sb) || td == null || !td.IsVisualized())
            {
                return;
            }
            GameObject gameObject1 = sb.TrickMarker;
            string     markerName  = td.mTrickParam.MarkerName;

            if (!string.IsNullOrEmpty(markerName) && sb.TrickMarkerDics.ContainsKey(markerName))
            {
                gameObject1 = sb.TrickMarkerDics[markerName];
            }
            if (!UnityEngine.Object.op_Implicit((UnityEngine.Object)gameObject1))
            {
                return;
            }
            Vector3    vector3     = sb.CalcGridCenter((int)td.mGridX, (int)td.mGridY);
            GameObject gameObject2 = UnityEngine.Object.Instantiate((UnityEngine.Object)gameObject1, vector3, Quaternion.get_identity()) as GameObject;

            if (!UnityEngine.Object.op_Implicit((UnityEngine.Object)gameObject2))
            {
                return;
            }
            gameObject2.get_transform().SetParent(sb.CurrentScene.get_transform(), false);
            TrickData.mTrickMarkerLists.Add(td, gameObject2);
        }