MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

ObjectInterface.cs 1.55 KB
Newer Older
BRUNEAU Julien's avatar
BRUNEAU Julien committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Crowd Simulator Engine
** Copyright (C) 2018 - Inria Rennes - Rainbow - Julien Pettre
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License
** as published by the Free Software Foundation; either version 2
** of the License, or (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
**
** Authors: Tristan Le Bouffant, Julian Joseph
**
** Contact: crowd_group@inria.fr
*/

using UnityEngine;

public class ObjectInterface
{
	protected GameObject _MyObj;
28
	protected SkinnedMeshRenderer[] _MeshRenderer = null;
BRUNEAU Julien's avatar
BRUNEAU Julien committed
29
30
31
	public void Init(GameObject obj)
	{
		_MyObj = obj;
32
		_MeshRenderer = _MyObj.GetComponentsInChildren<SkinnedMeshRenderer>();
BRUNEAU Julien's avatar
BRUNEAU Julien committed
33
34
35
	}
	public virtual void Show()
	{
36
		if(_MeshRenderer.Length>1)
BRUNEAU Julien's avatar
BRUNEAU Julien committed
37
		{
38
39
            foreach(SkinnedMeshRenderer mesh in _MeshRenderer)
			    mesh.enabled = true;
BRUNEAU Julien's avatar
BRUNEAU Julien committed
40
41
42
43
		}
	}
	public virtual void Hide()
	{
44
45
46
47
        if (_MeshRenderer.Length > 1)
        {
            foreach (SkinnedMeshRenderer mesh in _MeshRenderer)
                mesh.enabled = false;
BRUNEAU Julien's avatar
BRUNEAU Julien committed
48
49
50
51
52
53
54
		}
	}
	public virtual void OnLODChange(int current_lod_id)
	{
		// ras
	}
}