Exemplo n.º 1
0
    private void MoveMtkManager()
    {
        if (CurrentZone.GetType() == typeof(MTK_TPZone_Planet))
        {
            /* if(m_solarSystem.lastPlanet)
             * {
             *   PlanetEffect effect = m_solarSystem.lastPlanet.GetComponent<PlanetEffect>();
             *   if (m_solarSystem.lastPlanet && effect && effect.effectActive)
             *   {*/
            m_colonisator.Colonize((CurrentZone as MTK_TPZone_Planet).Planet);

            /*}
             * }*/
        }
        else
        {
            m_mtkManager.transform.position = m_targetTransform.position;
            m_mtkManager.transform.rotation = m_targetTransform.rotation;
        }

        MTK_Fade.Start(Color.clear, m_fadeEnd, () => m_available = true);
    }
Exemplo n.º 2
0
 protected virtual void Awake()
 {
     fadeMaterial = new Material(Shader.Find("Unlit/TransparentColor"));
     instance     = this;
 }